<template>
  <div class="nav">
    <div class="rv">
      <router-view></router-view>
    </div>
    <ul>
      <li>
        <img src="./assets/imges/新车111.jpg" alt="">
        <router-link :to="{ path: '/xinche' }">新车</router-link>
      </li>
      <li>
        <img src="./assets/imges/新能源111.jpg" alt="">
        <router-link :to="{ path: '/xinnengyuan' }">新能源</router-link>
      </li>
      <li>
        <img src="./assets/imges/发现111.jpg" alt="">
        <router-link :to="{ path: '/faxian' }">发现</router-link>
      </li>
      <li>
        <img src="./assets/imges/二手车111.jpg" alt="">
        <router-link :to="{ path: '/ershouche' }">二手车</router-link>
      </li>
      <li>
        <img src="./assets/imges/我的111.jpg" alt="">
        <router-link :to="{ path: '/wode' }">我的</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.nav {
  height: 100%;

  .rv {
    height: 1214px;
    // box-sizing: border-box;
    margin-bottom: 120px;
    overflow: auto;
  }

  ul {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 120px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 35px;

    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      img{
        width: 80px;
        margin-bottom: -10px;
      }
      a {
        color: black;
      }

      .router-link-active {
        color: blue;
      }
    }
  }

}
</style>